<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>

<!--左边栏-->
<ul th:fragment="left(currentTab)" class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
    <li class="layui-nav-item">
        <a th:href="@{'/u/' + ${session.profile.id}}">
            <i class="layui-icon">&#xe609;</i>
            我的主页
        </a>
    </li>
    <li class="layui-nav-item" th:classappend="${currentTab == 'center'} ? 'layui-this' : ''">
        <a href="/user/center">
            <i class="layui-icon">&#xe612;</i>
            用户中心
        </a>
    </li>
    <li class="layui-nav-item" th:classappend="${currentTab == 'setting'} ? 'layui-this' : ''">
        <a href="/user/setting">
            <i class="layui-icon">&#xe620;</i>
            基本设置
        </a>
    </li>
    <li class="layui-nav-item" th:classappend="${currentTab == 'message'} ? 'layui-this' : ''">
        <a href="/user/message">
            <i class="layui-icon">&#xe611;</i>
            我的消息
        </a>
    </li>
</ul>

<div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
</div>
<div class="site-mobile-shade"></div>

<div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
</div>
<div class="site-mobile-shade"></div>

</body>
</html>